import requests

if __name__ == "__main__":
    url = "http://www.kfc.com.cn/kfccda/ashx/GetStoreList.ashx?op=keyword"
    headers = {
        'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36',
    }
    param = {
        "cname": "",
        "pid": "",
        "keyword": "北京",
        "pageIndex": "3",
        "pageSize": "10"
    }
    response = requests.post(url=url, headers=headers, data=param)
    print(response.json())
